<!DOCTYPE html>
<html lang="zh">
<head>
    <meta http-equiv="Content-Type" content="text/html; charset=utf-8" />
    <meta name="robots" content="all" />
    <meta name="Author" content="" />
    <meta name="Keywords" content="" />
    <meta name="Description" content="" />
    <link href="/static/admin/css/base.css" rel="stylesheet" rev="stylesheet" type="text/css" media="screen, projection" />
    <script src="http://ajax.googleapis.com/ajax/libs/jquery/1.4.2/jquery.min.js" type="text/javascript"></script>
    <script language="JavaScript" type="text/javascript">
    $(function(){
        setTimeout(function(){$('#flashed').fadeOut('slow')},3000);
    })
    </script>
    <title>{% block title %}{% endblock %} &raquo; {{ site_title }}</title>
</head>

<body {% block body_id %}{% endblock %}>
<div id="wrap">
{% if get_flashed_messages() %}
    <div id="flashed">
    {% for category, msg in get_flashed_messages(with_categories=true) %}
        <p class="flash-{{ category }}">{{ msg }}</p>
    {% endfor %}
    </div>
{% endif %}
    <div id="header">
        <div class="title">
            <div id="logo"><h1><a href="/" title="">Snippet.cc</a></h1></div>
            <div id="quickmenu">
            {% if session.logged %}
                欢迎  {{ session.user.username }} <a href="/admin/settings" title="">设置</a> | <a href="/admin/logout" title="">退出</a>
            {% else %}
                <a href="/admin/login" title="">登录</a>
            {% endif %}
            </div>
        </div>
    </div>
    <div id="container">
        <div id="side">
            {% block menu %}{% include 'admin/menu.html' %}{% endblock %}
        </div>
        <div id="main">
            {% block content %}{% endblock %}
        </div>
        <div class="clear"></div>
    </div>
    <div id="footer"><p><span>&copy; 2010 Snippet.cc ICP:</span>Powered by Happypress. Design by Challen.wong. </p></div>
</div>
{% block js %}{% endblock %}
</body>
</html>